Ext.define('TS.view.base.EmpList' ,{
    extend: 'Ext.grid.Panel',
    alias : 'widget.emplist',
    title : '职员信息',
    columnLines: true,
    bodyPadding:0,
    frame : true,//面板渲染
    closable: true,
    store:'base.EmpStore',
    columns:[
            {header: '职员编号',  dataIndex: 'empCode',  flex: 1,
            	field:{
						xtype:'textfield',
						allowBlank:false
				}
            },
            {header: '职员姓名', dataIndex: 'empName', flex: 1,
            	field:{
						xtype:'textfield',
						allowBlank:false
				}
            }
    ],
    tbar :[
				{xtype:'button',action:'add',text:'添加',iconCls:'bill-add-button'},
				{xtype:'button',action:'upd',text:'修改',iconCls:'bill-edit-button'},
				{xtype:'button',action:'del',text:'删除',iconCls:'bill-delete-button'}
				
	],	
	dockedItems :[{
				xtype:'pagingtoolbar',
				store:'base.EmpStore',
				dock:'bottom',
				displayInfo:true
	}],
	/*plugins:[
				Ext.create("Ext.grid.plugin.CellEditing",{
					clicksToEdit : 2
				})
	],*/
	selType:'checkboxmodel',//设定选择模式
	multiSelect:true,//运行多选
	initComponent:function(){
		this.callParent(arguments);
	},
	listeners: {
		render:{
			fn:function(){
				this.store.load();
			}
		}
	}
});
